package com.atguigu.springmvc.demo01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author yanglin
 * @create 2023-12-23 10:06 星期六
 * description:  测试拦截器方法
 */
@Controller
public class TestController {
    
    @RequestMapping("/testInterceptor")
    public String testInterceptor(){
        return "success";
    }
    
    @RequestMapping("/testExceptionHandler")
    public String testExceptionHandler(){
        System.out.println(1 / 0);
        return "success";
    }
    
    
}
